package com.alen.sun.service;

import com.alen.sun.bean.PageBean;
import com.alen.sun.bean.Room;

import java.util.List;
import java.util.Map;

public interface RoomService {
    //添加房间
    Boolean addRoom(Room room);

    //修改房间信息
    Boolean updateRoom(Room room);

    //删除房间
    Boolean deleteRoom(Room room);

    //分页查询
    PageBean page(Integer page, Integer pageSize);

    //查看空闲房间
    PageBean pageFreeRoom(Integer page, Integer pageSize);

    //批量删除
    Boolean deleteByIds(List<String> ids);

    //网页搜索功能
    List<Room> searchByKeywords(String keywords);

    //获取空闲房间号
    String[] getFreeRoom();
}
